set runtime=win-x64
set dir=bin\Release\net7.0\%runtime%

cd ..\Src\WebAPI
dotnet publish -c Release -r %runtime% --self-contained
::dotnet publish -c Release -r win-x64 --self-contained false
::dotnet publish -c Release -r linux-x64 --self-contained
::dotnet publish -c Release -r linux-x64 --self-contained false

cd ..\
copy %dir%\Kernel.Handler.dll %dir%\publish
copy %dir%\Kernel.Repository.dll %dir%\publish
copy %dir%\Kernel.Service.dll %dir%\publish

pause